/*  zwt */
package cn.mandy.sysadmin.model;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

public class MonitorHostMetrics implements Serializable {
    private Long id;

    private String hostName;

    @ApiModelProperty(value = "CPU使用率")
    private Short cpuPercent;

    @ApiModelProperty(value = "内存使用率")
    private Short memPercent;

    @ApiModelProperty(value = "磁盘使用率")
    private Short diskPercent;

    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    public Short getCpuPercent() {
        return cpuPercent;
    }

    public void setCpuPercent(Short cpuPercent) {
        this.cpuPercent = cpuPercent;
    }

    public Short getMemPercent() {
        return memPercent;
    }

    public void setMemPercent(Short memPercent) {
        this.memPercent = memPercent;
    }

    public Short getDiskPercent() {
        return diskPercent;
    }

    public void setDiskPercent(Short diskPercent) {
        this.diskPercent = diskPercent;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", hostName=").append(hostName);
        sb.append(", cpuPercent=").append(cpuPercent);
        sb.append(", memPercent=").append(memPercent);
        sb.append(", diskPercent=").append(diskPercent);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}